package com.design.pattern.template;

/**
 * @author 王霄
 * @date 2022/3/11 9:35
 */
public abstract class DefaultCook implements Cook {

    protected abstract void prepare();

    protected abstract void cooking();

    protected abstract void cooked();

    @Override
    public void cook() {
        prepare();
        cooking();
        cooked();
    }
}
